package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.pojo.Employee;
import com.atguigu.springcloud.service.FeginService;
import com.atguigu.springcloud.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Map;

@Service
public class FeginServiceImpl implements FeginService {

    @Resource
    private TestService testService;

    @Override
    public String getCode() {
        return testService.getMessage();
    }

    @Override
    public String getName() {
        return testService.getName();
    }

    @Override
    public Collection<Employee> list() {
        return testService.list();
    }

    @Override
    public Map list1() {
        return testService.list1();
    }
}
